package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.system.api.factory.RemoteLogFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(contextId = "remoteStoreService", value = ServiceNameConstants.SOURCE_SERVICE, fallbackFactory = RemoteLogFallbackFactory.class)
public interface RemoteStoreService {
    @GetMapping("/store/update/store/userIds")
    public void updateStoreUserIds(@RequestParam("userId") Long userId,@RequestParam("storeIds") Long[] storeIds);

    @GetMapping("/store/select/storeIds")
    Long[] selectStoreIds(@RequestParam("userId") Long userId);
}
